package com.net.xpay.common.dao.partner;

import com.net.xpay.common.domain.partner.Partner;
import com.net.xpay.common.model.search.PartnerSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface PartnerMapper extends VersionedMapper<Long, Partner> {
    List<Partner> search(@Param("searchModel") PartnerSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") PartnerSearchModel searchModel);

    List<Partner> list(@Param("searchModel") PartnerSearchModel searchModel);
}
